package project;
import java.io.Serializable;


public class DatabaseInfo implements Serializable{
private String hostName;
private int portNo;
private String dbName;
private String userName;
private String password;

public void setHostName(String hName) {
    hostName = hName;
}
public void setPortNo(int pNo){
    portNo = pNo;
}
public void setDatabaseName(String dName) {
    dbName = dName;
}
public void setUserName(String uName) {
    userName = uName;
}
public void setPassword(String pw) {
    password = pw;
}

public String getHostName(){
    return hostName;
}
public int getPortNo(){
    return portNo;
}
public String getDatabaseName(){
    return dbName;
}
public String getUserName(){
    return userName;
}
public String getPassword(){
    return password;
}
public void displayInfo(){
    System.out.print(hostName);
    System.out.print("\t");
    System.out.print(portNo);
    System.out.print("\t");
    System.out.print(userName);
    System.out.print("\t");
    System.out.println(dbName);
}

}
